# HD
#
# Makefile

all : mk

CC = gcc

DEBUG = -g -DDEBUG_MODE
CFLAGS = $(DEBUG) -Wall -std=gnu99

LIBS=

mk_SRCS = main.c util.c file_sys.c

mk_OBJS = $(patsubst %.c,%.o,$(mk_SRCS))

$(mk_OBJS) : %.o : %.c
	$(CC) -c $(CFLAGS) $< -o $@

mk : $(mk_OBJS)
	$(CC) $(CFLAGS) -o mk $(mk_OBJS) $(LIBS)


.PHONY : clean

clean:
	rm -f *.o *~ mk

